package scu.maqiang.numeric;

/**
 * 复稀疏矩阵元还素类ֵ
 *
 * @author 马强
 * @version 1.0
 * @since 1.0
 *
 */
public class SCEntry {

    /**
     * 元素列指标
     */
    public int col;

    /**
     * 元素值ֵ
     */
    public Complex val;

    /**
     * 构造函数，传入元素列指标与复元素值
     *
     * @param col
     *            ��ָ��
     * @param val
     *            Ԫ��ֵ
     */
    public SCEntry(int col, Complex val) {
        this.col = col;
        this.val = new Complex(val);
    }

    public SCEntry(int col, double realVal, double imageVal) {
        this.col = col;
        this.val = new Complex(realVal, imageVal);
    }

    /**
     * ���캯����ʹ����ָ����Ԫ��ֵ����Ԫ����
     *
     * @param se
     *            Ԫ����
     */
    public SCEntry(SCEntry se) {
        this.col = se.col;
        this.val = new Complex(se.val);
    }
}